package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.WorkPaper;
import com.ruoyi.system.domain.WorkPaperWinners;

/**
 * 论文Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-10
 */
public interface WorkPaperMapper 
{
    /**
     * 查询论文
     * 
     * @param id 论文主键
     * @return 论文
     */
    public WorkPaper selectWorkPaperById(Long id);

    /**
     * 查询论文列表
     * 
     * @param workPaper 论文
     * @return 论文集合
     */
    public List<WorkPaper> selectWorkPaperList(WorkPaper workPaper);

    /**
     * 新增论文
     * 
     * @param workPaper 论文
     * @return 结果
     */
    public int insertWorkPaper(WorkPaper workPaper);

    /**
     * 修改论文
     * 
     * @param workPaper 论文
     * @return 结果
     */
    public int updateWorkPaper(WorkPaper workPaper);

    /**
     * 删除论文
     * 
     * @param id 论文主键
     * @return 结果
     */
    public int deleteWorkPaperById(Long id);

    /**
     * 批量删除论文
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkPaperByIds(Long[] ids);

    /**
     * 批量删除论文完成人
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkPaperWinnersByPaperIds(Long[] ids);
    
    /**
     * 批量新增论文完成人
     * 
     * @param workPaperWinnersList 论文完成人列表
     * @return 结果
     */
    public int batchWorkPaperWinners(List<WorkPaperWinners> workPaperWinnersList);
    

    /**
     * 通过论文主键删除论文完成人信息
     * 
     * @param id 论文ID
     * @return 结果
     */
    public int deleteWorkPaperWinnersByPaperId(Long id);
}
